<div class="contents view">
<h2><?php  echo __('Content'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($content['Content']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Category'); ?></dt>
		<dd>
			<?php echo $this->Html->link($content['Category']['id'], array('controller' => 'categories', 'action' => 'view', $content['Category']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Alias'); ?></dt>
		<dd>
			<?php echo h($content['Content']['alias']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Active'); ?></dt>
		<dd>
			<?php echo h($content['Content']['active']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Show In Menu'); ?></dt>
		<dd>
			<?php echo h($content['Content']['show_in_menu']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Viewed'); ?></dt>
		<dd>
			<?php echo h($content['Content']['viewed']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($content['Content']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Modified'); ?></dt>
		<dd>
			<?php echo h($content['Content']['modified']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Default'); ?></dt>
		<dd>
			<?php echo h($content['Content']['default']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('ParentId'); ?></dt>
		<dd>
			<?php echo h($content['Content']['parentId']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Content'), array('action' => 'edit', $content['Content']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Content'), array('action' => 'delete', $content['Content']['id']), null, __('Are you sure you want to delete # %s?', $content['Content']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Contents'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Content'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Categories'), array('controller' => 'categories', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Category'), array('controller' => 'categories', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Descriptions'), array('controller' => 'descriptions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Description'), array('controller' => 'descriptions', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Upload Files'), array('controller' => 'upload_files', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Upload File'), array('controller' => 'upload_files', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Descriptions'); ?></h3>
	<?php if (!empty($content['Description'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Content Id'); ?></th>
		<th><?php echo __('Language Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Description'); ?></th>
		<th><?php echo __('Meta Title'); ?></th>
		<th><?php echo __('Meta Description'); ?></th>
		<th><?php echo __('Meta Keywords'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($content['Description'] as $description): ?>
		<tr>
			<td><?php echo $description['id']; ?></td>
			<td><?php echo $description['content_id']; ?></td>
			<td><?php echo $description['language_id']; ?></td>
			<td><?php echo $description['name']; ?></td>
			<td><?php echo $description['description']; ?></td>
			<td><?php echo $description['meta_title']; ?></td>
			<td><?php echo $description['meta_description']; ?></td>
			<td><?php echo $description['meta_keywords']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'descriptions', 'action' => 'view', $description['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'descriptions', 'action' => 'edit', $description['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'descriptions', 'action' => 'delete', $description['id']), null, __('Are you sure you want to delete # %s?', $description['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Description'), array('controller' => 'descriptions', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Upload Files'); ?></h3>
	<?php if (!empty($content['UploadFile'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th><?php echo __('Content Id'); ?></th>
		<th><?php echo __('File Type Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($content['UploadFile'] as $uploadFile): ?>
		<tr>
			<td><?php echo $uploadFile['id']; ?></td>
			<td><?php echo $uploadFile['name']; ?></td>
			<td><?php echo $uploadFile['created']; ?></td>
			<td><?php echo $uploadFile['modified']; ?></td>
			<td><?php echo $uploadFile['content_id']; ?></td>
			<td><?php echo $uploadFile['file_type_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'upload_files', 'action' => 'view', $uploadFile['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'upload_files', 'action' => 'edit', $uploadFile['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'upload_files', 'action' => 'delete', $uploadFile['id']), null, __('Are you sure you want to delete # %s?', $uploadFile['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Upload File'), array('controller' => 'upload_files', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
